package com.zhujh.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AndroidDebugTest2 extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sub);
        
        Button button1=(Button) this.findViewById(R.id.subButton);
        button1.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View view) {
				Intent intent=new Intent();
				intent.setClass(AndroidDebugTest2.this, AndroidDebugTest1.class);
				startActivity(intent);
				AndroidDebugTest2.this.finish();
			}
        	
        });
    }
}